﻿
namespace Unknown.Framework.Database
{
    /// <summary>
    /// 参数类
    /// </summary>
    public class Parameter
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public object Value { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string DataType { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public Parameter()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="value">值</param>
        /// <param name="dataType">类型</param>
        public Parameter(string name, object value, string dataType)
        {
            this.Name = name;
            this.Value = value;
            this.DataType = dataType;
        }
    }
}
